package messagesPacks;

public class SimpleIntMessage extends GenericMessage 
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int parameter;
	private int result;
	public enum op_type
	{
		ADMIN_unlock,
		ADMIN_newlibrarian,
		ADMIN_graduate,
		ALL_createUser,
		EditUser,
		LIBRARIAN_borrowCopy,
		LIBRARIAN_manualExt,
		LIBRARIAN_tocUpload,
		LIBRARIAN_tocDelete
	};
	op_type op;
	
	public SimpleIntMessage(op_type op, int p)
	{
		this.type = msgType.SimpleIntMSG;
		this.op = op;
		setParameter(p);
	}
	
	public op_type getOp()
	{
		return this.op;
	}
	
	public int getParameter() 
	{
		return parameter;
	}
	public void setParameter(int parameter) 
	{
		this.parameter = parameter;
	}
	public int getResult() 
	{
		return result;
	}
	public void setResult(int result) 
	{
		this.result = result;
	}
	
	
}
